package com.example.controller;

import com.example.service.IClassifyService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@CrossOrigin
@RestController
@RequestMapping("/uni-app/classify")
public class ClassifyController {
    @Resource
    IClassifyService classifyService;

    @RequestMapping("/list")
    public Object classList(){
        return classifyService.list();
    }
}
